#!/usr/bin/env python3
# -*-coding: utf-8-*-

class Screen(object):

    @property
    def width(self):
        return self._width 

    @width.setter
    def width(self, value):
        try:
            if not isinstance(value, int):
                raise ValueError('value must be int!')
        except Exception as e:
            print(e)
        else:
            self._width = value
            
    @property
    def height(self):
        return self._height

    @height.setter
    def height(self, value):
        try:
            if not isinstance(value, int):
                raise ValueError('value must be int!')
        except Exception as e:
            print(e)
        else:
            self._height = value
    @property
    def resolution(self):
        return self.width * self.heigth



